import Vue from 'vue'
import Vuex from 'vuex'
import home from './modules/home'
import product from './modules/product'
import order from './modules/order'
import user from './modules/user'
import account from './modules/account'
import statistics from './modules/statistics'
import common from './common'

//import createLogger from '../../../src/plugins/logger'

Vue.use(Vuex)

//const debug = process.env.NODE_ENV !== 'production'

//var dlq = myPlugin(auth);

export default new Vuex.Store({
  modules: {
    home,
    product,
  	order,
  	user,
  	account,
    statistics,
    common,
  },

  //plugins: [dlq]

  //strict: debug,
  //plugins: debug ? [createLogger()] : []
})



